From: Eli Zaretskii Date: Thu, 3 May 2001 17:47:37 +0000 (+0000) Subject: (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40480 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=01bc627cf527018b07026e693d41ea77540a4028;p=emacs.git (XTread_socket) [!USE_TOOLKIT_SCROLL_BARS]: Fix the change from 2001-04-30. --- diff --git a/src/xterm.c b/src/xterm.c index a967774f57a..6bc3ced3a90 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10025,6 +10025,9 @@ XTread_socket (sd, bufp, numchars, expected) } else { +#ifndef USE_TOOLKIT_SCROLL_BARS + struct scroll_bar *bar; +#endif #if defined USE_X_TOOLKIT && defined USE_LUCID /* Submenus of the Lucid menu bar aren't widgets themselves, so there's no way to dispatch events @@ -10041,8 +10044,7 @@ XTread_socket (sd, bufp, numchars, expected) /* Dispatch event to the widget. */ goto OTHER; #else /* not USE_TOOLKIT_SCROLL_BARS */ - struct scroll_bar *bar - = x_window_to_scroll_bar (event.xexpose.window); + bar = x_window_to_scroll_bar (event.xexpose.window); if (bar) x_scroll_bar_expose (bar, &event);